<!DOCTYPE html>
<html lang="en">
<head prefix="og: http://ogp.me/ns#">
  <meta charset="utf-8">
  <title>gomonitor | seqyuan</title>
  <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <!-- Canonical links -->
  <link rel="canonical" href="https://seqyuan.github.io/gomonitor/home.html">
  <!-- Alternative links -->
  
    
      <link rel="alternative" hreflang="en" href="https://seqyuan.github.io/gomonitor/home">
    
      <link rel="alternative" hreflang="zh-cn" href="https://seqyuan.github.io/zh-cn/gomonitor/home">
    
  
  <!-- Icon -->
  <link rel="apple-touch-icon" sizes="57x57" href="/icon/apple-touch-icon-57x57.png">
  <link rel="apple-touch-icon" sizes="114x114" href="/icon/apple-touch-icon-114x114.png">
  <link rel="apple-touch-icon" sizes="72x72" href="/icon/apple-touch-icon-72x72.png">
  <link rel="apple-touch-icon" sizes="144x144" href="/icon/apple-touch-icon-144x144.png">
  <link rel="apple-touch-icon" sizes="60x60" href="/icon/apple-touch-icon-60x60.png">
  <link rel="apple-touch-icon" sizes="120x120" href="/icon/apple-touch-icon-120x120.png">
  <link rel="apple-touch-icon" sizes="76x76" href="/icon/apple-touch-icon-76x76.png">
  <link rel="apple-touch-icon" sizes="152x152" href="/icon/apple-touch-icon-152x152.png">
  <link rel="icon" type="image/png" href="/icon/favicon-196x196.png" sizes="196x196">
  <link rel="icon" type="image/png" href="/icon/favicon-160x160.png" sizes="160x160">
  <link rel="icon" type="image/png" href="/icon/favicon-96x96.png" sizes="96x96">
  <link rel="icon" type="image/png" href="/icon/favicon-16x16.png" sizes="16x16">
  <link rel="icon" type="image/png" href="/icon/favicon-32x32.png" sizes="32x32">
  <meta name="msapplication-TileColor" content="#2f83cd">
  <meta name="msapplication-TileImage" content="/icon/mstile-144x144.png">
  <!-- CSS -->
  <!-- build:css build/css/navy.css -->
  
<link rel="stylesheet" href="/css/navy.css">

  <!-- endbuild -->
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/typeface-lato@0.0.75/index.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/font-awesome@4.3.0/css/font-awesome.min.css">
  <link rel="stylesheet" href="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.css">
  <!-- RSS -->
  <link rel="alternate" href="/atom.xml" title="seqyuan" type="application/atom+xml">
  <!-- Open Graph -->
  <meta name="description" content="k8s docker 任务调度程序 command gomonitor的模块   taskmonitor  Add a task format list agsTask  Submit a depend list as workflow to argo&#x2F;kubernetes submit  Submit a pod(ini conf) to kubernetes psub  Submit a po">
<meta property="og:type" content="website">
<meta property="og:title" content="gomonitor">
<meta property="og:url" content="https://seqyuan.github.io/gomonitor/home">
<meta property="og:site_name" content="seqyuan">
<meta property="og:description" content="k8s docker 任务调度程序 command gomonitor的模块   taskmonitor  Add a task format list agsTask  Submit a depend list as workflow to argo&#x2F;kubernetes submit  Submit a pod(ini conf) to kubernetes psub  Submit a po">
<meta property="og:locale" content="en_US">
<meta property="article:published_time" content="2021-03-11T07:25:35.014Z">
<meta property="article:modified_time" content="2021-03-11T07:25:35.014Z">
<meta property="article:author" content="ahworld">
<meta name="twitter:card" content="summary">
<meta name="twitter:site" content="hexojs">
<meta property="fb:admins" content="100000247608790">
  <!-- Google Analytics -->
  
<script>
  (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
  (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

  ga('create', 'UA-48498357-3', 'auto');
  ga('send', 'pageview');
</script>

  <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
  <script>
     (adsbygoogle = window.adsbygoogle || []).push({
          google_ad_client: "ca-pub-6482217598104186",
          enable_page_level_ads: true
     });
  </script>
<meta name="generator" content="Hexo 5.3.0"></head>

<body>
  <div id="container">
    <header id="header" class="wrapper">
  <div id="header-inner" class="inner">
    <h1 id="logo-wrap">
      <a href="/" id="logo">Hexo</a>
    </h1>
    <nav id="main-nav">
      <a href="/gomonitor/" class="main-nav-link">gomonitor</a><a href="/trackC/" class="main-nav-link">trackC</a><a href="/news/" class="main-nav-link">News</a><a href="/plugins/" class="main-nav-link">Plugins</a><a href="/about/" class="main-nav-link">About</a>
      <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/seqyuan/site" class="main-nav-link"><i class="fa fa-github-alt"></i></a>
      <div id="search-input-wrap">
        <div id="search-input-icon">
          <i class="fa fa-search"></i>
        </div>
        <input type="search" id="search-input" placeholder="Search...">
      </div>
    </nav>
    <div id="lang-select-wrap">
      <label id="lang-select-label"><i class="fa fa-globe"></i><span>English</span></label>
      <select id="lang-select" data-canonical="gomonitor/home.html">
        
          <option value="en" selected>English</option>
        
          <option value="zh-cn">简体中文</option>
        
      </select>
    </div>
    <a id="mobile-nav-toggle">
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
      <span class="mobile-nav-toggle-bar"></span>
    </a>
  </div>
</header>

    <div id="content-wrap">
  <div id="content" class="wrapper">
    <div id="content-inner">
      <article class="article-container" itemscope itemtype="http://schema.org/Article">
        <div class="article-inner">
          <div class="article">
            <div class="inner">
              <header class="article-header">
                <h1 class="article-title" itemprop="name">gomonitor</h1>
                <a target="_blank" rel="noopener external nofollow noreferrer" href="https://github.com/hexojs/site/edit/master/source/gomonitor/home.md" class="article-edit-link" title="Improve this doc"><i class="fa fa-pencil"></i></a>
              </header>
              <div class="article-content" itemprop="articleBody">
                <p>k8s docker 任务调度程序</p>
<h1 id="command" class="article-heading"><a href="#command" class="headerlink" title="command"></a>command<a class="article-anchor" href="#command" aria-hidden="true"></a></h1><blockquote>
<p>gomonitor的模块</p>
</blockquote>
<ul>
<li><strong><code>taskmonitor</code></strong><br>  Add a task format list</li>
<li><strong><code>agsTask</code></strong><br>  Submit a depend list as workflow to argo/kubernetes</li>
<li><strong><code>submit</code></strong><br>  Submit a pod(ini conf) to kubernetes</li>
<li><strong><code>psub</code></strong><br>  Submit a pod(command line) to kubernetes</li>
<li><strong><code>stat</code></strong><br>  List all project status monitored by this program</li>
<li><strong><code>retry</code></strong><br>  Retry a workflow/project</li>
<li><strong><code>rmproject</code></strong><br>  Remove a project, delete from the ~/gomonitor.project.db</li>
<li><strong><code>cron</code></strong><br>  Do cron job</li>
</ul>
<h1 id="投递单个任务到k8s集群" class="article-heading"><a href="#投递单个任务到k8s集群" class="headerlink" title="投递单个任务到k8s集群"></a>投递单个任务到k8s集群<a class="article-anchor" href="#投递单个任务到k8s集群" aria-hidden="true"></a></h1><p>gomonitor提供了1种方式投递job类型的任务到集群，2种方式投递单个pod到k8s集群</p>
<ul>
<li>submit</li>
<li>psub</li>
</ul>
<h1 id="agsTask-taskmonitor-agsMbyM-agsTaskmonitor四种流程模式适用情况" class="article-heading"><a href="#agsTask-taskmonitor-agsMbyM-agsTaskmonitor四种流程模式适用情况" class="headerlink" title="agsTask taskmonitor agsMbyM agsTaskmonitor四种流程模式适用情况"></a>agsTask taskmonitor agsMbyM agsTaskmonitor四种流程模式适用情况<a class="article-anchor" href="#agsTask-taskmonitor-agsMbyM-agsTaskmonitor四种流程模式适用情况" aria-hidden="true"></a></h1><h2 id="agsTask" class="article-heading"><a href="#agsTask" class="headerlink" title="agsTask"></a>agsTask<a class="article-anchor" href="#agsTask" aria-hidden="true"></a></h2><blockquote>
<p>如果配合目前版本的generate_pipeline，agsTask适合短周期的产品，如果使用agsTask不采用item类型的job config，每个shell配1个ini，shell之间以完全的DAG串联，agsTask模式适用于所有产品类型</p>
</blockquote>
<h2 id="agsMbyM" class="article-heading"><a href="#agsMbyM" class="headerlink" title="agsMbyM"></a>agsMbyM<a class="article-anchor" href="#agsMbyM" aria-hidden="true"></a></h2><blockquote>
<p>适用于模块间以目录作为接口的类型，如果使用generate_pipeline产生的输入文件，建议用agsTask模式</p>
</blockquote>
<h2 id="taskmonitor" class="article-heading"><a href="#taskmonitor" class="headerlink" title="taskmonitor"></a>taskmonitor<a class="article-anchor" href="#taskmonitor" aria-hidden="true"></a></h2><blockquote>
<p>最契合自写模块主脚本，每个shell配1个ini，shell之间以完全的DAG串联，主要特点是1个任务1个配置，支持个性化的配置同类步骤，比如大染色体的call SNP与小染色体的call SNP步骤可以设置不同的memory</p>
</blockquote>
<h2 id="agsTaskmonitor" class="article-heading"><a href="#agsTaskmonitor" class="headerlink" title="agsTaskmonitor"></a>agsTaskmonitor<a class="article-anchor" href="#agsTaskmonitor" aria-hidden="true"></a></h2><blockquote>
<p>与taskmonitor不同的一点是taskmonitor投递单个pod到k8s，agsTaskmonitor投递单个pod到argo，能够访问pod消耗的内存及cpu，实现任务内存溢出被terminated后自动增加内存重新投递</p>
</blockquote>

              </div>
              <footer class="article-footer">
                <time class="article-footer-updated" datetime="2021-03-11T07:25:35.014Z" itemprop="dateModified">Last updated: 2021-03-11</time>
                <a href="stat.html" class="article-footer-next" title="stat"><span>Next</span><i class="fa fa-chevron-right"></i></a>
              </footer>
              
<section id="comments">
  <div id="disqus_thread"></div>
</section>
<script>
  var disqus_shortname = 'hexojs';
  var disqus_url = 'https://seqyuan.github.io/gomonitor/home.html';
  var disqus_title = "gomonitor";
  var disqus_config = function(){
    this.language = 'en';
  };
  (function(){
    var dsq = document.createElement('script'); dsq.type = 'text/javascript'; dsq.async = true;
    dsq.src = 'https://go.disqus.com/embed.js';
    (document.getElementsByTagName('head')[0] || document.getElementsByTagName('body')[0]).appendChild(dsq);
  })();
</script>

            </div>
          </div>
          <aside id="article-toc" role="navigation">
            <div id="article-toc-inner">
              <script async type="text/javascript" src="//cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=hexoio" id="_carbonads_js"></script>
              <strong class="sidebar-title">Contents</strong>
              <ol class="toc"><li class="toc-item toc-level-1"><a class="toc-link" href="#command"><span class="toc-text">command</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#%E6%8A%95%E9%80%92%E5%8D%95%E4%B8%AA%E4%BB%BB%E5%8A%A1%E5%88%B0k8s%E9%9B%86%E7%BE%A4"><span class="toc-text">投递单个任务到k8s集群</span></a></li><li class="toc-item toc-level-1"><a class="toc-link" href="#agsTask-taskmonitor-agsMbyM-agsTaskmonitor%E5%9B%9B%E7%A7%8D%E6%B5%81%E7%A8%8B%E6%A8%A1%E5%BC%8F%E9%80%82%E7%94%A8%E6%83%85%E5%86%B5"><span class="toc-text">agsTask taskmonitor agsMbyM agsTaskmonitor四种流程模式适用情况</span></a><ol class="toc-child"><li class="toc-item toc-level-2"><a class="toc-link" href="#agsTask"><span class="toc-text">agsTask</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#agsMbyM"><span class="toc-text">agsMbyM</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#taskmonitor"><span class="toc-text">taskmonitor</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#agsTaskmonitor"><span class="toc-text">agsTaskmonitor</span></a></li></ol></li></ol>
              <a href="#" id="article-toc-top">Back to Top</a>
            </div>
          </aside>
        </div>
      </article>
      <aside id="sidebar" role="navigation">
  <div class="inner">
    <strong class="sidebar-title">overview</strong><a href="home.html" class="sidebar-link current">home</a><a href="stat.html" class="sidebar-link">stat</a><a href="retry.html" class="sidebar-link">retry</a><strong class="sidebar-title">pod</strong><a href="psub.html" class="sidebar-link">psub</a><a href="submit.html" class="sidebar-link">submit</a><strong class="sidebar-title">workflow</strong><a href="taskmonitor.html" class="sidebar-link">taskmonitor</a><a href="agsTask.html" class="sidebar-link">agsTask</a>
  </div>
</aside>
    </div>
  </div>
</div>

    <footer id="footer" class="wrapper">
  <div class="inner">
    <div id="footer-copyright">
      &copy; 2021 <a href="https://github.com/hexojs/hexo/graphs/contributors" rel="external nofollow noreferrer" target="_blank">ahworld</a><br>
      Documentation licensed under <a href="http://creativecommons.org/licenses/by/4.0/" rel="external nofollow noreferrer" target="_blank">CC BY 4.0</a>.
    </div>
    <div id="footer-links">
      <a href="https://www.netlify.com/" rel="external nofollow noreferrer" class="footer-link" target="_blank"><img src="https://www.netlify.com/img/global/badges/netlify-dark.svg" style="margin-bottom:-14px"/></a>
      <a href="https://twitter.com/hexojs" rel="external nofollow noreferrer" class="footer-link" target="_blank"><i class="fa fa-twitter"></i></a>
      <a href="https://github.com/seqyuan/site" rel="external nofollow noreferrer" class="footer-link" target="_blank"><i class="fa fa-github-alt"></i></a>
    </div>
  </div>
</footer>

  </div>
  <div id="mobile-nav-dimmer"></div>
  <nav id="mobile-nav">
  <div id="mobile-nav-inner">
    <ul id="mobile-nav-list">
      <a href="/gomonitor/" class="mobile-nav-link">gomonitor</a><a href="/trackC/" class="mobile-nav-link">trackC</a><a href="/news/" class="mobile-nav-link">News</a><a href="/plugins/" class="mobile-nav-link">Plugins</a><a href="/about/" class="mobile-nav-link">About</a>
      <li class="mobile-nav-item">
        <a href="https://github.com/seqyuan/site" class="mobile-nav-link" rel="external" target="_blank">GitHub</a>
      </li>
    </ul>
    
      <strong class="mobile-nav-title">overview</strong><a href="home.html" class="mobile-nav-link current">home</a><a href="stat.html" class="mobile-nav-link">stat</a><a href="retry.html" class="mobile-nav-link">retry</a><strong class="mobile-nav-title">pod</strong><a href="psub.html" class="mobile-nav-link">psub</a><a href="submit.html" class="mobile-nav-link">submit</a><strong class="mobile-nav-title">workflow</strong><a href="taskmonitor.html" class="mobile-nav-link">taskmonitor</a><a href="agsTask.html" class="mobile-nav-link">agsTask</a>
    
  </div>
  <div id="mobile-lang-select-wrap">
    <span id="mobile-lang-select-label"><i class="fa fa-globe"></i><span>English</span></span>
    <select id="mobile-lang-select" data-canonical="gomonitor/home.html">
      
        <option value="en" selected>English</option>
      
        <option value="zh-cn">简体中文</option>
      
    </select>
  </div>
</nav>
  <!-- Scripts -->
<!-- Cookie -->
<script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
<!-- build:js build/js/main.js -->

<script src="/js/lang_select.js"></script>


<script src="/js/mobile_nav.js"></script>

<!-- endbuild -->

<!-- Algolia -->

<script type="text/javascript" src="https://cdn.jsdelivr.net/docsearch.js/1/docsearch.min.js"></script>
<script type="text/javascript">
document.getElementById('search-input-wrap').classList.add('on');
docsearch({
  apiKey: 'c3d5d4c995b5e0c2ffb5623900279a66',
  indexName: 'hexo',
  inputSelector: '#search-input'
});
</script>


</body>
</html>